import 'package:flutter/material.dart';
import 'package:flutter_app/common/utils/screen.dart';
import 'package:flutter_app/common/values/values.dart';

PreferredSizeWidget transparentAppBar({ List<Widget>? actions, Widget? title, Widget? leading }) {
    // 透明背景 AppBar
  return AppBar(
    backgroundColor: Colors.transparent,
    elevation: 0,
    title: Center(
      child: title,
    ),
    leading: leading,
    actions: actions,
  );
}

/// 10像素 Divider
Widget divider10Px({Color bgColor = AppColors.secondaryElement}) {
  return Container(
    height: duSetWidth(10),
    decoration: BoxDecoration(
      color: bgColor,
    ),
  );
}